package com.wbq501.wanandroid

import androidx.navigation.findNavController
import androidx.navigation.ui.setupWithNavController
import com.google.android.material.bottomnavigation.LabelVisibilityMode
import com.wbq501.common.base.BaseActivity
import com.wbq501.wanandroid.databinding.ActivityMainBinding
import com.wbq501.wanandroid.model.MainViewModel

class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>(){

    override fun layoutId(): Int {
        return R.layout.activity_main
    }

    override fun initView() {
        mDatabind.navigation.labelVisibilityMode = LabelVisibilityMode.LABEL_VISIBILITY_LABELED
    }

    override fun initData() {
        val findNavController = findNavController(R.id.main)
        mDatabind.navigation.setupWithNavController(findNavController)
    }

}